package com.example.back.controller;

import com.example.back.entity.Admin;
import com.example.back.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdminController {
    @Autowired
    private AdminService adminService;
    @GetMapping("/AdminLogin" )
    public Admin doLogin(Admin admin) {
        return adminService.selectAdmin(admin);
    }
}
